Skip to content

Conversation

@mattip
Copy link
Contributor

@mattip mattip commented Oct 26, 2021

@brianjo

For future reference, the way I did this is to write the snippet to a file, say foo, and then do

$ for f in $(find docs/1.10.0 -name '*.html'); do sed -i -e"/^.*modernizr.min.js.*$/r foo" $f; done

This finds all the html files in docs/1.10.0, and for each one, after a line containing modernizr.min.js, appends the contents of foo.

@netlify
Copy link

netlify bot commented Oct 26, 2021

👷 Deploy Preview for pytorch-dot-org-preview processing.

🔨 Explore the source changes: 73f47b6

🔍 Inspect the deploy log: https://app.netlify.com/sites/pytorch-dot-org-preview/deploys/6178143e74070d0007fa4d10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants